import { request ,requestMock} from "@/util/http";
export const requestCategoryList=()=>{
    return request.get("/api/product/getBaseCategoryList")
};

//请求banner数据
export const requestBannerList = () => {
    return requestMock.get("/banner")
  };

//请求floor的数据
export const requestFloorList = () => {
    return requestMock.get("/floor");
  };

  //请求搜索页数据
  export const requestSearchList =(params)=>{
    return request.post('/api/list',params)
  }

  // 根据skuId 请求某个商品详情信息
  export const requestDetailInfo=(skuId)=>{
    return request.get(`api/item/${skuId}`)
  }